export enum TBtnPosition {
  left = 'left',
  right = 'right',
  center = 'center'
}
interface IOption {
  label: string;
  value: string | number;
}
export interface IFormItem {
  label: string;
  prop?: string;
  type: string;
  placeholder?: string;
  required?: boolean;
  options?: IOption[];
  defaultValue?: any;
  slotName?: string;
  disabled?: boolean;
  onEditHide?: boolean;
}

export interface IModalConfig {
  pageName: string;
  header: {
    titleOnCreate: string;
    titleOnEdit: string;
  };
  formItems: IFormItem[];
  labelWidth?: string;
  btnPosition?: TBtnPosition;
}

export interface IModalProps {
  modalConfig: IModalConfig;
  otherInfo?: any;
}
